package cn.stylefeng.guns.modular.hp.dao;

import cn.stylefeng.guns.modular.hp.model.PresidentMailInfo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 院长信箱表 Mapper 接口
 * </p>
 *
 * @author xzqiang
 * @date 2019-05-26
 */
public interface PresidentMailInfoMapper extends BaseMapper<PresidentMailInfo> {

    List<PresidentMailInfo> presidentMailInfoList(@Param("startIndex")Integer startIndex, @Param("size")Integer size);

    Integer presidentMailInfoCont();

    List<Map<String, Object>> getMailList(@Param("page") Page<PresidentMailInfo> page,@Param("orderByField")  String orderByField,@Param("isAsc")  boolean isAsc);

}